package com.good.shopping.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;


// 整合redis作为session存储
@EnableRedisHttpSession
// 指定feign文件包，可以不支持默认找带feign的包路径
@EnableFeignClients(basePackages = "com.good.shopping.product.feign")
@MapperScan("com.good.shopping.product.dao")
@EnableDiscoveryClient
@SpringBootApplication
public class ShoppingProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(ShoppingProductApplication.class, args);
    }

}
